package com.admin.socketmultiplayer.dialog

import android.content.Context
import com.admin.socketmultiplayer.inteface.DialogListener
import kotlinx.android.synthetic.main.dialog_prompt.view.*

/**
 * Created by 吴昶 on 2018/4/25.
 *
 * layout=R.layout.layout_chose
 */

class PromptDialog(context: Context, layout:Int, var listener:DialogListener, theme:Int):BaseDialog(context,layout,theme){

    override fun initData() {
        fview.btn_prompt_cancel.setOnClickListener {
            cancel()
            listener.cancelListener()
        }
    }

    fun setPromptContent(content:String){
        fview.tv_prompt_content.text=content
    }

}